* src/cmds.c (Fself_insert_command): Allow zero repeat count.
authorGlenn Morris <rgm@gnu.org>
Sat, 31 May 2014 02:53:29 +0000 (19:53 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 31 May 2014 02:53:29 +0000 (19:53 -0700)
src/ChangeLog
src/cmds.c

index 927d6662c679f28927689f33bd7de1f506a4e1de..f09729cbb8a431d5b87f8c3ec883bdcb6441a2fc 100644 (file)
@@ -1,3 +1,7 @@
+2014-05-31  Glenn Morris  <rgm@gnu.org>
+
+       * cmds.c (Fself_insert_command): Allow zero repeat count.  (Bug#17649)
+
 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        Fix port to 32-bit AIX with xlc (Bug#17598).
index 7459908828d4627ea4ebb083819fc6d8d1a3e1fa..1a510afa2716c48c24620b55e37e9e1a77c010ad 100644 (file)
@@ -280,8 +280,8 @@ At the end, it runs `post-self-insert-hook'.  */)
   bool remove_boundary = 1;
   CHECK_NUMBER (n);
 
-  if (XFASTINT (n) < 1)
-    error ("Nonpositive repetition argument %"pI"d", XFASTINT (n));
+  if (XFASTINT (n) < 0)
+    error ("Negative repetition argument %"pI"d", XFASTINT (n));
 
   if (!EQ (Vthis_command, KVAR (current_kboard, Vlast_command)))
     nonundocount = 0;